<div class="s_banner"><img src="images/banner2.png"></div>
<div class="log_panel">
  <div style="width:70%; color:#FF0000 {if $errorMsg==''} ;display:none{/if}">·{$errorMsg}</div>
  <div class="log_form">
    <form id="form1" name="form1" action="login-post.php" method="post">
      <p>输入您的Yiduo Id 和密码</p>
      <input type="text" placeholder="example@gmail.com" class="username" name="usernc"><label class="validate"></label>
      <input type="password" placeholder="请输入您的YiDuo密码" class="psw" name="userpwd">
      <!-- <a href="javascript:openfindpwd()" class="form_tip">忘记密码?</a> --> <a class="btn_submit" id="btn_submit" href="javascript:void()">登陆</a>
    </form>
  </div>
  <div class="log_info">
    <p class="log_info_t">您可以使用自己的Yiduo Id 来享用Yiduo 服务，如：</p>
    <p>1>知识库访问</p>
    <p>2>积分礼品兑换</p>
    <p>3>客户代表预约</p>
    <p>4>注册成功即送10积分(等同采购价值1000元物品)</p>
    <p class="log_info_tip">现在 <a href="register.php">注册Yiduo</a></p>
  </div>
</div>
<script language="javascript" type="text/javascript">
	function openfindpwd()
	{ldelim}
	  window.open("openfindpwd.php","newframe","left=200,top=200,width=400,height=300,menubar=no,toolbar=no,location=no,scrollbars=no,location=no");
	{rdelim}
	$('#form1').validate({
		rules: {
			usernc:{   
				required:true,   
				email:true  
			}
		}, 
		messages: {
			usernc:{   
				required: "请输入一个Email地址",   
				email: "请输入一个有效的Email地址"  
			}
		},
		errorPlacement: function(error, element) {       
			error.appendTo(element.next());      
		}
	});
	
	$('#btn_submit').click(function(){
		if($("#form1").validate()){
		 $("#form1").submit();
	 }
	});
	</script>
</script> 
